package annotation;

import annotation.basedJava.Config;
import annotation.basedJava.Peoples;
import annotation.bean.People;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class BasedJavaApp {
    public static void main(String[] args) {
        final AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(Config.class);
        final People bean = context.getBean(People.class);
        System.out.println(bean);
        final Peoples peoples = context.getBean(Peoples.class);
        System.out.println(peoples);
    }
}
